<extend name="Public/base" />

<!-- 子導航 -->
<block name="sidebar">
    <include file="sidemenu" />
</block>

<block name="body">
	<!-- 標題欄 -->
	<div class="main-title">
		<h3>回收站({:count($list)})</h3>
	</div>

    <div class="btn-group m-b-sm" role="group">
        <button url="{:U('article/clear')}" class="btn ajax-get btn-default">清 空</button>
        <button url="{:U('article/permit')}" class="btn ajax-post btn-default" target-form="ids">還 原</button>
    </div>

	<!-- 數據列表 -->
    <div class="panel-body panel panel-default">
        <table class="table table-hover table-striped">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">編號</th>
		<th class="">標題</th>
		<th class="">創建者</th>
		<th class="">類型</th>
		<th class="">分類</th>
		<th class="">刪除時間</th>
		<th class="">操作</th>
		</tr>
    </thead>
    <tbody>
		<volist name="list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
			<td>{$vo.id} </td>
			<td>{$vo.title}</td>
			<td>{$vo.username} </td>
			<td><span>{:get_document_type($vo['type'])}</span></td>
			<td><span>{:get_cate($vo['category_id'])}</span></td>
			<td><span>{$vo.update_time|time_format}</span></td>
			<td><a href="{:U('article/permit?ids='.$vo['id'])}" class="ajax-get">還原</a>
                </td>
		</tr>
		</volist>
	</tbody>
    </table> 
        
	</div>
<nav>

  <ul class="pagination">

  {$_page}  

  </ul>
</nav>
</block>
